package com.sunfeng.elasticsearch.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode()
@TableName("machinePosition")
public class MachinePosition {
    //自增唯一标识
    @TableId(value = "id")
    private Long id;
    //车牌号
    @TableField("plateNumber")
    private String plateNumber;
    //车牌颜色
    @TableField("plateColor")
    private Integer plateColor;

    //gps时间
    @TableField("cT")
    private LocalDateTime cT;

    //速度
    @TableField("speed")
    private Integer speed;
    //经度
    private String lng;
    //维度
    private String lat;
    //状态
    private Integer status;
    //报警标志
    @TableField("warningMark")
    private Integer warningMark;
    //当前所在行政区域编码
    @TableField("regionCode")
    private String regionCode;
    //当前所在重点地区ID,该重点区域必须和本机械有关系
    @TableField("areaId")
    private Integer areaId;
    private String key2000;
    private String key15000;
    //创建时间
    @TableField("createTime")
    private LocalDateTime createTime;
    //区域类型，1代表禁行区域 2代表限定行驶区域
    @TableField("areaType")
    private Integer areaType;
    @TableField("terminalId")
    private String terminalId;
    private Integer elevation;
    private Integer direction;
        //数据库标识
    private Integer db;

}
